<template>
  <el-button type="primary" class="btn-search" @click="btnClick" icon="el-icon-search" v-bind="$attrs">{{ name }}</el-button>
</template>

<script>
export default {
  name: 'ZSearchBtn',
  props: {
    name: {
      type: String,
      default: '搜索'
    }
  },
  methods: {
    btnClick() {
      this.$emit('click')
    }
  }
}
</script>

<style lang="scss" scoped>
.btn-search {
  background: #3D84F8;
  // border-radius: 4px;
  color: white;
  border: 1px solid #3D84F8;
}
</style>